<script setup lang="ts">
import Footer from "@/layouts/components/footer.vue";
const refresh = () => {
  window.location.reload();
};
</script>
<template>
  <div class="pages">
    <div class="content">
      <img class="p-404" src="/images/layouts/404.png" alt="404" />
      <div class="info">
        <h6>Sorry！您的页面走丢了！</h6>
        <p>别紧张刷新页面试试吧</p>
        <div class="btns">
          <div class="btn1" @click="refresh">刷新</div>
          <div class="btn2">
            <NuxtLink to="/">返回首页</NuxtLink>
          </div>
        </div>
      </div>
    </div>
  </div>
  <Footer :isCopyRight="false" />
</template>

<style lang="scss" scoped>
.pages {
  .content {
    padding-left: 280px;
    overflow: hidden;
  }
  .p-404 {
    width: 400px;
    height: 400px;
    float: left;
    margin-top: 22px;
  }
  .info {
    float: left;
    margin-top: 173px;
    margin-left: 34px;
    h6 {
      font-weight: 500;
      font-size: 20px;
      color: #444444;
    }
    p {
      margin-top: 10px;
      font-weight: 350;
      font-size: 14px;
      color: #888888;
    }
    .btns {
      margin-top: 30px;
      display: flex;
      align-items: center;
      .btn1 {
        cursor: pointer;
        width: 120px;
        border: 1px solid #e12010;
        font-weight: 400;
        font-size: 14px;
        color: #e12010;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 4px;
        padding: 4px 0;
      }
      .btn2 {
        border-radius: 4px;
        padding: 6px 0;
        cursor: pointer;
        width: 120px;
        background: #e22000;
        font-weight: 400;
        font-size: 14px;
        color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: 25px;
        a {
          font-weight: 400;
          font-size: 14px;
          color: #ffffff;
        }
      }
    }
  }
}
</style>
